package com.neusoft.controller.physician;

import com.neusoft.service.MedicalRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
//@CrossOrigin
@RequestMapping("/medicalrecords")
public class MedicalRecordController {
    @Autowired
    MedicalRecordService medicalRecordService;
    @PostMapping("/saveMedicalRecord")
    public String saveMedicalRecord(@RequestBody Map<String,Object> medicalRecord){
        return medicalRecordService.saveMedicalRecord(medicalRecord);
    }
}
